package com.yj.ccs.abs.web.asset.entity;

import com.yj.ccs.abs.common.enums.ContractTransportType;
import com.yj.ccs.abs.common.enums.ContractType;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * Copyright 2018 (C) Yunjian-VC
 * Created on : 2018/3/20
 * Author     : Unbelievable9
 **/
@Data
public class Contract {

    private Long id;

    private Long asset_id;

    private String buyer;

    private String seller;

    private String number;

    private String goods_type;

    private ContractTransportType transport_type = ContractTransportType.UNKNOWN;

    private BigDecimal amount = BigDecimal.ZERO;

    private BigDecimal unit_price = BigDecimal.ZERO;

    private LocalDate supply_start_date;

    private LocalDate supply_end_date;

    private LocalDate sign_date;

    private LocalDate expire_date;

    private Boolean consigned = false;

    private String consignee;

    private Boolean delivered = false;

    private String deliverer;

    private Boolean reckoned = false;

    private String reckoner;

    private ContractType type = ContractType.UNKNOWN;

    private LocalDateTime create_time;
}
